package com.qingmeng.applyjob.portal.enums;

import com.qingmeng.applyjob.common.api.IErrorCode;

/**
 * 用户注册结果枚举定义
 */
public enum RegisterResult implements IErrorCode {
    SUCCESS(0, "用户注册成功"),
    USERNAME_EXIST(1, "用户名已经存在"),
    FAILED(2, "用户注册失败");

    private final long code;
    private final String message;

    RegisterResult(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
